package com.easy.mapper;

import com.easy.bean.Donation;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DonationMapper {
    int add(@Param("donation") Donation donation);
    int edit(@Param("donation") Donation donation);
    int del(@Param("id") Integer id);
    Donation one(@Param("id") Integer id);
    List<Donation> all(@Param("donation") Donation donation);
    int pageCount(@Param("donation") Donation donation);
    List<Donation> page(@Param("page") Page page, @Param("donation") Donation donation);
}
